home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
27
/
0
/
DISK2701.ZIP
/
A1.#@#
/
FBO_DPI.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-16
|
6KB
|
333 lines
ECHO OFF
CD\
PRINT /T
TYPE \TAKE-OFF.DIR\VV
BREAK OFF
CD \TAKE-OFF.DIR
IF EXIST J.EXE RENAME J.EXE CHARTER.EXE
IF EXIST J.EXE ERASE J.EXE
J.COM /H
IF EXIST SUCCESS ERASE SUCCESS
IF EXIST FB GOTO NEXTONE
VOL >FB
QLOAD
:NEXTONE
CLS
IF %1. == . GOTO ENDING
IF %1 == EXTEND MENU_EXT
IF %1 == extend MENU_EXT
IF %1 == X MENU_EXT
IF %1 == x MENU_EXT
IF %1 == RECALL GOTO OPTIONP
IF %1 == recall GOTO OPTIONP
IF %1 == FBO GOTO STARTER
IF %1 == FBO$ GOTO MAIN
IF %1 == FBO! GOTO CLEARANCE
IF %1 == FBOHELP GOTO HELPENDING
IF %1 == GRAPH GOTO CHARTMASTER
IF %1 == graph GOTO CHARTMASTER
IF %1 == G GOTO CHARTMASTER
IF %1 == g GOTO CHARTMASTER
IF %1 == LISTPLAN GOTO OPTIONB
IF %1 == listplan GOTO OPTIONB
IF %1 == NAVSUM GOTO OPTIONC
IF %1 == navsum GOTO OPTIONC
IF %1 == PRINT GOTO OPTIOND
IF %1 == print GOTO OPTIOND
IF %1 == PREF GOTO OPTIONJ
IF %1 == pref GOTO OPTIONJ
IF %1 == AUTO GOTO OPTIONL
IF %1 == auto GOTO OPTIONL
IF %1 == RNAV GOTO OPTIONM
IF %1 == rnav GOTO OPTIONM
IF %1 == PLAN GOTO OPTIONK
IF %1 == plan GOTO OPTIONK
IF %1 == AIRPORT GOTO AIRPORTS
IF %1 == airport GOTO AIRPORTS
IF %1 == A GOTO AIRPORTS
IF %1 == a GOTO AIRPORTS
IF %1 == W&B GOTO W&B
IF %1 == w&b GOTO W&B
IF %1 == MAIN GOTO MAIN
IF %1 == main GOTO MAIN
IF %1 == MENU GOTO CLEARANCE
IF %1 == menu GOTO CLEARANCE
IF %1 == MANUAL GOTO MANUAL
IF %1 == manual GOTO MANUAL
IF %1 == HELP GOTO HELP
IF %1 == help GOTO HELP
IF %1 == MODEL GOTO MODEL
IF %1 == model GOTO MODEL
IF %1 == SEARCH GOTO NAVTLU
IF %1 == search GOTO NAVTLU
IF %1 == S GOTO NAVTLU
IF %1 == s GOTO NAVTLU
IF %1 == INTERSECTION GOTO XSCTN
IF %1 == intersection GOTO XSCTN
IF %1 == I GOTO XSCTN
IF %1 == i GOTO XSCTN
IF %1 == NAVAID GOTO NAVAID
IF %1 == navaid GOTO NAVAID
IF %1 == N GOTO NAVAID
IF %1 == n GOTO NAVAID
IF %1 == RESET GOTO RESET
IF %1 == reset GOTO RESET
IF %1 == AUTOEXEC GOTO AEXEC
IF %1 == autoexec GOTO AEXEC
IF %1 == ALARM GOTO ALARM
IF %1 == alarm GOTO ALARM
IF %1 == FUEL GOTO FUEL
IF %1 == fuel GOTO FUEL
ECHO - [ %1 ] Function unknown!......
PAUSE
GOTO ENDING
:FUEL
QLOAD
IF NOT EXIST FB ECHO - Fuel load not successful.....
IF NOT EXIST FB PAUSE
GOTO ENDING
:RESET
BEGIN
GOTO ENDING
:MAIN
IDLER
GOTO ENDING
:XSCTN
IDLER 5
GOTO ENDING
:NAVAID
IDLER 4
GOTO ENDING
:ALARM
IF NOT %2. == . GOTO ALARMA
ECHO - Vendor # missing!......
GOTO ALARMEXI
:ALARMA
IF NOT %3. == . GOTO ALARMGO
ECHO - Time missing!......
:ALARMEXI
PAUSE
GOTO ENDING
:ALARMGO
IDLER 10 %2 %3 %4 %5 %6 %7 %8 %9
REM - spaces are required to allow for commandmsg$ display.....
IF NOT EXIST SUCCESS GOTO ENDING
IF %2 == 8 GOTO DUATLOG
IF %2 == 9 GOTO DUATLOG
:ALARMC
SHIFT
SHIFT
SHIFT
GOTO NEXTONE
:DUATLOG
CLS
ECHO - Printing DUAT log.......
COPY /A DUAT.DAT PRN:
COPY /B SUCCESS PRN:
GOTO ALARMC
:CLEARANCE
CLEARANC
GOTO ENDING
:OPTIONB
CLEARANC B
GOTO ENDING
:OPTIONC
CLEARANC C
GOTO ENDING
:OPTIOND
IF EXIST PRTARGET ERASE PRTARGET
CLEARANC D PRTARGET nonesuch nonesuch
GOTO PLANFINI
:OPTIONJ
IF EXIST PRTARGET ERASE PRTARGET
IF EXIST AIRPORTS ERASE AIRPORTS
IF EXIST APTARGET ERASE APTARGET
CLEARANC J PRTARGET %2 %3
GOTO OPTJLM
:OPTIONL
IF EXIST PRTARGET ERASE PRTARGET
IF EXIST AIRPORTS ERASE AIRPORTS
IF EXIST APTARGET ERASE APTARGET
CLEARANC L PRTARGET %2 %3 %4 %5 %6 %7
GOTO OPTJLM
:OPTIONM
IF EXIST PRTARGET ERASE PRTARGET
IF EXIST AIRPORTS ERASE AIRPORTS
IF EXIST APTARGET ERASE APTARGET
CLEARANC M PRTARGET %2 %3
GOTO OPTJLM
:OPTIONK
IF EXIST AIRPORTS ERASE AIRPORTS
CLEARANC K
GOTO ENDING
:OPTIONP
IF EXIST AIRPORTS ERASE AIRPORTS
CLEARANC P
GOTO ENDING
:OPTJLM
CLS
IF NOT EXIST PRTARGET ECHO - Plan was not successful......!
IF NOT EXIST PRTARGET PAUSE
IF NOT EXIST PRTARGET GOTO ENDING
CLS
ECHO - Please turn printer & modem on. Thank you.
COPY /B PRTARGET PRN:
CLS
IF EXIST WEABRIEF ERASE WEABRIEF
IF EXIST SUCCESS IDLER 11
CLS
ECHO - Printing enroute weather briefing.........
IF EXIST WEABRIEF COPY /B WEABRIEF PRN:
CLS
IF NOT EXIST AIRPORTS GOTO ACHART
AFD
ECHO - Please turn printer on. Thank you.
COPY /B APTARGET PRN:
:ACHART
IF EXIST GRTARGET ERASE GRTARGET
IF %2. == . CHARTER
IF %2. == . GOTO ENDING
CHARTER GRTARGET
GOTO XCHARTMASTER
:CHARTMASTER
IF EXIST GRTARGET ERASE GRTARGET
IF %2. == . CHARTER
IF %2. == . GOTO ENDING
CHARTER GRTARGET %3
:XCHARTMASTER
IF NOT EXIST GRTARGET GOTO ENDING
ECHO - Please turn printer on. Thank you.
COPY /B GRTARGET PRN:
GOTO ENDING
:PLANFINI
IF NOT EXIST PRTARGET GOTO ENDING
CLS
ECHO - Please turn printer on. Thank you.
COPY /B PRTARGET PRN:
IF %2. == R. GOTO PLANFB
IF %2. == r. GOTO PLANFB
GOTO PLANFA
:PLANFB
IF EXIST GRTARGET ERASE GRTARGET
CHARTER GRTARGET
IF NOT EXIST GRTARGET GOTO ENDING
ECHO - Please turn printer on. Thank you.
COPY /B GRTARGET PRN:
:PLANFA
IF %3. == . GOTO OPTDKP
SHIFT
GOTO AIRPORTS
:AIRPORTS
IF NOT EXIST \TAKE-OFF.DIR\AIRPORT\AIRPORT.ID CLS
IF NOT EXIST \TAKE-OFF.DIR\AIRPORT\AIRPORT.ID ECHO - AFD's require re-gen......re-install any AFD!
IF NOT EXIST \TAKE-OFF.DIR\AIRPORT\AIRPORT.ID PAUSE
IF NOT EXIST \TAKE-OFF.DIR\AIRPORT\AIRPORT.ID GOTO ENDING
IF EXIST APTARGET ERASE APTARGET
IF %2. == . AIRPORT
IF %2. == . GOTO ENDING
AIRPORT %2 %3 APTARGET %4 %5
IF %4. == . PAUSE
:OPTDKPX
IF NOT EXIST APTARGET GOTO ENDING
ECHO - Please turn printer on. Thank you.
COPY /B APTARGET PRN:
GOTO ENDING
:OPTDKP
CLS
IF EXIST APTARGET ERASE APTARGET
IF EXIST AIRPORTS AFD
GOTO OPTDKPX
:W&B
WB
GOTO ENDING
:MODEL
BUILD
GOTO ENDING
:NAVTLU
NAVTLU
GOTO ENDING
:STARTER
TYPE \TAKE-OFF.DIR\V | MORE
TYPE \TAKE-OFF.DIR\COPYRATE.MAN
TYPE \TAKE-OFF.DIR\TOMBSTON.EXE
PAUSE
GOTO MAIN
:HELPENDING
DIR \TAKE-OFF.DIR\*.VER >VERSIONS
ECHO - Versions installed......
TYPE \TAKE-OFF.DIR\VERSIONS | MORE
PAUSE
GOTO ENDING
:MANUAL
ECHO - PRINT CLEARANCE MANUAL
ECHO -
ECHO - Turn Printer on! DOS print file must be in path.
ECHO -
PAUSE
CD\
DIR \TAKE-OFF.DIR\*.VER >VERSIONS
PRINT \TAKE-OFF.DIR\VERSIONS
PRINT \TAKE-OFF.DIR\HELP.BAS
CLS
TYPE \TAKE-OFF.DIR\V
ECHO - Wait for printing to stop!
PAUSE
GOTO ENDING
:HELP
IDLER 1
GOTO ENDING
:AEXEC
cd\
AUTOEXEC.BAT
:ENDING
\TAKE-OFF.DIR\MENU_DPI